/* home.vue 优化后的样式 - 仅保留页面特有样式 */

/* 页面特有变量覆盖 */
.home-container {
  /* 继承公共变量，仅保留特有属性 */
  position: relative;
  background-color: var(--bg-page-alt);
}

/* 页面特有的渐变卡片 */
.welcome-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  margin-bottom: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(123, 104, 238, 0.3);
}

.welcome-title {
  font-size: 22px;
  font-weight: 600;
  display: block;
}

.welcome-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 5px;
  display: block;
}

/* 页面特有的用户头像 */
.avatar-canvas {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.avatar-wrapper {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.avatar-wrapper:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(123, 104, 238, 0.2);
}

/* 页面特有的角色标签 */
.role-tag {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.role-tag.admin {
  background: linear-gradient(45deg, var(--primary-color), #9370DB);
}

/* 页面特有的卡片操作按钮 */
.card-actions .card-btn {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.card-actions .card-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* 移动端特有调整 */
@media (max-width: 768px) {
  .home-container.mobile {
    padding: var(--spacing-md);
  }
  
  .mobile .avatar-canvas {
    width: 45px;
    height: 45px;
    margin-right: var(--spacing-sm);
  }
}

/* 保留原有的动画定义（避免影响其他页面） */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 状态类 - 与JS交互相关 */
.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.fade-in-delay-1 {
  animation: fadeIn 0.5s 0.2s ease-out forwards;
  opacity: 0;
}

.fade-in-delay-2 {
  animation: fadeIn 0.5s 0.4s ease-out forwards;
  opacity: 0;
}